﻿<%@ Page Title="用户角色管理" Language="C#" MasterPageFile="~/AdminMenu.Master" AutoEventWireup="true"
    CodeBehind="UserRoleManagement.aspx.cs" Inherits="RealtyManagementSystem.Web.Admin.UserRoleManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="admin_menuHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="admin_menuContent" runat="server">
    <asp:ScriptManagerProxy runat="server" ID="scriptProx1">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="upMain" runat="server">
        <ContentTemplate>
            <div>
                <span class="role_span">角色：</span>
                <asp:DropDownList ID="ddlRoles" runat="server" OnSelectedIndexChanged="dddlRoles_SelectedIndexChanged"
                    AutoPostBack="True">
                </asp:DropDownList>
                <br />
                <br />
                <div class="role_span">
                    用户列表：</div>
                <asp:GridView class="view_style" ID="gvUsersInRole" runat="server" AutoGenerateColumns="False"
                    CellPadding="4" ForeColor="#333333" Width="100%">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="UserName" HeaderText="用户名" />
                        <asp:CheckBoxField DataField="IsAnonymous" HeaderText="匿名用户" />
                        <asp:BoundField DataField="aspnet_Membership.Email" HeaderText="电子邮箱" />
                        <asp:BoundField DataField="LastActivityDate" HeaderText="上次活动日期" />
                        <asp:BoundField DataField="aspnet_Membership.LastLoginDate" HeaderText="上次登录日期" />
                        <asp:BoundField DataField="aspnet_Membership.CreateDate" HeaderText="创建日期" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
                <div id="divAddRManager" class="divAddRManager_1" runat="Server" visible="true">
                    <asp:HyperLink CssClass="hy_style" ID="hLinkAddUser" runat="server" NavigateUrl="CreateNewUser.aspx?userType=0">点击这里，添加一个新的管理员</asp:HyperLink>
                </div>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="ddlRoles" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>